import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'
import foods from './components/foods/foods.vue'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'home',
      components: Home
    },
    {
      path: '/foods',
      name: 'foods',
      component: foods
    },
    {
      path: '/evaluation',
      name: 'evaluation',
      component: () => import('./components/evaluation/evaluation.vue')
    },
    {
      path: '/merchant',
      name: 'merchant',
      component: () => import('./components/merchant/merchant.vue')
    }
  ]
})
